<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var  a=3.14;
    alert(a%1==0?"整数":"小数")
</script>
</body>
</html>